#!/bin/bash

echo "🔍 检查 stringhash.cpp 文件"

if [ -f "../cbp2make/lib/stringhash.cpp" ]; then
    echo "✅ stringhash.cpp 存在"
    echo "文件内容预览:"
    head -20 "../cbp2make/lib/stringhash.cpp"
    
    echo ""
    echo "检查 sdbm_hash 函数:"
    grep -A10 "sdbm_hash" "../cbp2make/lib/stringhash.cpp" | head -15
else
    echo "❌ stringhash.cpp 不存在"
    echo "在目录中查找:"
    find ../cbp2make/lib -name "*hash*" -o -name "*string*" 2>/dev/null
fi
